Carbon


MPSetExceptionHandler

Header: Multiprocessing.h Carbon status: Supported

Sets an exception handler for a task.

OSStatus MPSetExceptionHandler (
    MPTaskID task, 
    MPQueueID exceptionQ
);
Parameter descriptions
task

The task to associate with the exception handler.

exceptionQ

The message queue to which an exception message will be sent.

function result

A result code.

DISCUSSION

When an exception handler is set and an exception occurs, the task is suspended and a message is sent to the message queue specified by exceptionQ. The message contains the following information:

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)